import {Component} from '@angular/core';
import {NavController, NavParams} from 'ionic-angular';

import {Backend} from '../../providers/backend';

@Component({
  templateUrl: 'build/pages/tab-my/tab-my-description.html'
})
export class Description {

  static get parameters() {
    return [[NavController], [NavParams], [Backend]];
  }

  constructor(nav, params, backend) {
    this.nav = nav;
    this.params = params;
    this.backend = backend;
    this.contactv = 1;//当前版本号
    this.title;
    this.message;
    this.backend.versions()
      .then(result => {
        this.title = result.description.title;
        this.message = result.description.text;
        console.log(this.title);
      });
  }
}
